// This example sends a Serial message every 250 milliseconds

#include <Metro.h> // Include the Metro library

Metro serialMetro = Metro(1000);  // Instantiate an instance

void setup() {
  Serial.begin(9600); // Start the Serial communication
  analogReference(EXTERNAL);
}

void loop() {

  if (serialMetro.check() == 1) { // check if the metro has passed it's interval .
    // Output all the analog readings seperated by a space character
    Serial.print(analogRead(0));
    Serial.print(",");
    Serial.print(analogRead(1));
    Serial.println();
  }
}

